﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using BlueLotus7.Eden.Web.Properties;
using BlueLotus7.ArchiveSystem.Common;
using System.Web;
using System.Text;
using BlueLotus7.Common;
using BlueLotus7.Eden.Web.Models;
using BlueLotus7.Web;
using System.Web.Routing;
using BlueLotus7.Contract;

namespace BlueLotus7.Eden.Web
{
    public static class AuthorityManager
    {
        private const string TicketKey = "SessionTicket";

        public static SessionTicket Logon(DateTime? stamp)
        {
            SessionTicket ticket = null;




            return ticket;
        }


        public static SessionTicket RetrieveSessionTicket(this BaseController controller)
        {
            SessionTicket ticket = null;

            ticket = controller.Session[TicketKey] as SessionTicket;


            return ticket;
        }

        public static bool Authorize(SessionTicket sessionTicket)
        {
            bool result = false;

            return result;
        }

    }
}
